
package upcoming.client;

import java.util.*;

public class Event  implements java.io.Serializable
{
	private String id;
	private String name;
	private String tags;
	private String description;
	private Calendar startDate;
	private Calendar endDate;
	private String startTime;
	private String endTime;
	private boolean personal;
	private boolean selfpromotion;
	private String metroId;
	private String venueId;
	private String userId;
	private String categoryId;
	private Calendar datePosted;
	private String latitude;
	private String longitude;
	private String geocodingPrecision;
	private boolean geocodingAmbiguous;
	private String venueName;
	private String venueAddress;
	private String venueCity;
	private String venueStateName;
	private String venueStateCode;
	private String venueStateId;
	private String venueCountryName;
	private String venueCountryCode;
	private String venueCountryId;
	private String venueZip;
	private String venueUrl;
	private String venuePhone;
	private String photoUrl;
	private String ticketUrl;
	private String ticketPrice;
	private boolean ticketFree;
	private Integer watchlistCount;
	

	
	public String getId()
	{
		return id;
	}



	public void setId(String id)
	{
		this.id = id;
	}



	public String getName()
	{
		return name;
	}



	public void setName(String name)
	{
		this.name = name;
	}



	public String getTags()
	{
		return tags;
	}


	public List<String> getTagsAsList()
	{
		
		List<String> list = new ArrayList<String>();
		
		if (this.getTags() != null)
		{
			StringTokenizer tokenizer = new StringTokenizer(this.getTags(), " \n\t,");
			while (tokenizer.hasMoreTokens())
			{
				list.add(tokenizer.nextToken());
			}
		}
		
		return list;
	}

	public void setTags(String t)
	{
		this.tags = t;
	}



	public String getDescription()
	{
		return description;
	}



	public void setDescription(String description)
	{
		this.description = description;
	}



	public Calendar getStartDate()
	{
		return startDate;
	}



	public void setStartDate(Calendar startDate)
	{
		this.startDate = startDate;
	}



	public Calendar getEndDate()
	{
		return endDate;
	}



	public void setEndDate(Calendar endDate)
	{
		this.endDate = endDate;
	}



	public String getStartTime()
	{
		return startTime;
	}



	public void setStartTime(String startTime)
	{
		this.startTime = startTime;
	}



	public String getEndTime()
	{
		return endTime;
	}



	public void setEndTime(String endTime)
	{
		this.endTime = endTime;
	}



	public boolean isPersonal()
	{
		return personal;
	}



	public void setPersonal(boolean personal)
	{
		this.personal = personal;
	}



	public boolean isSelfpromotion()
	{
		return selfpromotion;
	}



	public void setSelfpromotion(boolean selfpromotion)
	{
		this.selfpromotion = selfpromotion;
	}



	public String getMetroId()
	{
		return metroId;
	}



	public void setMetroId(String metroId)
	{
		this.metroId = metroId;
	}



	public String getVenueId()
	{
		return venueId;
	}



	public void setVenueId(String venueId)
	{
		this.venueId = venueId;
	}



	public String getUserId()
	{
		return userId;
	}



	public void setUserId(String userId)
	{
		this.userId = userId;
	}



	public String getCategoryId()
	{
		return categoryId;
	}



	public void setCategoryId(String categoryId)
	{
		this.categoryId = categoryId;
	}



	public Calendar getDatePosted()
	{
		return datePosted;
	}



	public void setDatePosted(Calendar datePosted)
	{
		this.datePosted = datePosted;
	}



	public String getLatitude()
	{
		return latitude;
	}



	public void setLatitude(String latitude)
	{
		this.latitude = latitude;
	}



	public String getLongitude()
	{
		return longitude;
	}



	public void setLongitude(String longitude)
	{
		this.longitude = longitude;
	}



	public String getGeocodingPrecision()
	{
		return geocodingPrecision;
	}



	public void setGeocodingPrecision(String geocodingPrecision)
	{
		this.geocodingPrecision = geocodingPrecision;
	}



	public boolean isGeocodingAmbiguous()
	{
		return geocodingAmbiguous;
	}



	public void setGeocodingAmbiguous(boolean geocodingAmbiguous)
	{
		this.geocodingAmbiguous = geocodingAmbiguous;
	}



	public String getVenueName()
	{
		return venueName;
	}



	public void setVenueName(String venueName)
	{
		this.venueName = venueName;
	}



	public String getVenueAddress()
	{
		return venueAddress;
	}



	public void setVenueAddress(String venueAddress)
	{
		this.venueAddress = venueAddress;
	}



	public String getVenueCity()
	{
		return venueCity;
	}



	public void setVenueCity(String venueCity)
	{
		this.venueCity = venueCity;
	}



	public String getVenueStateName()
	{
		return venueStateName;
	}



	public void setVenueStateName(String venueStateName)
	{
		this.venueStateName = venueStateName;
	}



	public String getVenueStateCode()
	{
		return venueStateCode;
	}



	public void setVenueStateCode(String venueStateCode)
	{
		this.venueStateCode = venueStateCode;
	}



	public String getVenueStateId()
	{
		return venueStateId;
	}



	public void setVenueStateId(String venueStateId)
	{
		this.venueStateId = venueStateId;
	}



	public String getVenueCountryName()
	{
		return venueCountryName;
	}



	public void setVenueCountryName(String venueCountryName)
	{
		this.venueCountryName = venueCountryName;
	}



	public String getVenueCountryCode()
	{
		return venueCountryCode;
	}



	public void setVenueCountryCode(String venueCountryCode)
	{
		this.venueCountryCode = venueCountryCode;
	}



	public String getVenueCountryId()
	{
		return venueCountryId;
	}



	public void setVenueCountryId(String venueCountryId)
	{
		this.venueCountryId = venueCountryId;
	}



	public String getVenueZip()
	{
		return venueZip;
	}



	public void setVenueZip(String venueZip)
	{
		this.venueZip = venueZip;
	}



	public String getVenueUrl()
	{
		return venueUrl;
	}



	public void setVenueUrl(String venueUrl)
	{
		this.venueUrl = venueUrl;
	}



	public String getVenuePhone()
	{
		return venuePhone;
	}



	public void setVenuePhone(String venuePhone)
	{
		this.venuePhone = venuePhone;
	}



	public String getPhotoUrl()
	{
		return photoUrl;
	}



	public void setPhotoUrl(String photoUrl)
	{
		this.photoUrl = photoUrl;
	}



	public String getTicketUrl()
	{
		return ticketUrl;
	}



	public void setTicketUrl(String ticketUrl)
	{
		this.ticketUrl = ticketUrl;
	}



	public String getTicketPrice()
	{
		return ticketPrice;
	}



	public void setTicketPrice(String ticketPrice)
	{
		this.ticketPrice = ticketPrice;
	}



	public boolean isTicketFree()
	{
		return ticketFree;
	}



	public void setTicketFree(boolean ticketFree)
	{
		this.ticketFree = ticketFree;
	}


	

	public Integer getWatchlistCount()
	{
		return watchlistCount;
	}



	public void setWatchlistCount(Integer count)
	{
		this.watchlistCount = count;
	}



	public String toString()
	{
		return (this.name == null) ? "" : this.name;
	}
	
}
